python Split a file path into root and extension

112

python Split a file path into root and extension -

import os
root, ext = os.path.splitext(path)

Comments

Submit
0 Comments